package com.leha.core.entity.vo;

import com.leha.core.entity.mybatis.LhUser;
import lombok.Data;

import java.util.ResourceBundle;

@Data
public class UserLoginVO {
    LhUser userInfo;
    Integer playCnt;
    Integer rewardsCnt;
    String sessionKey;
    String sk = ResourceBundle.getBundle("config").getString("wegame.sk");
    public UserLoginVO(LhUser u) {
        userInfo = u;
        playCnt = 0;
        rewardsCnt = 0;
    }
    public UserLoginVO(LhUser u, Integer pc, Integer rc) {
        userInfo = u;
        playCnt = pc;
        rewardsCnt = rc;
    }
    public UserLoginVO(LhUser u, Integer pc, Integer rc, String sessionKey) {
        userInfo = u;
        playCnt = pc;
        rewardsCnt = rc;
        this.sessionKey = sessionKey;
    }
}
